/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pt.ua.miect.sd.simuladorpesca.conns;

import java.io.Serializable;

/**
 * SocketMessage defines format of the messages that are sent between client and server
 * @author PedroA
 */
public class SocketMessage implements Serializable {
    private String logicalClock;
    private SocketMessageType type;
    private IMessageContent content;
    
    public SocketMessage(String clock, SocketMessageType type, IMessageContent content)
    {
        this.logicalClock = clock;
        this.type = type;
        this.content = content;
    }

    /**
     * @return the content
     */
    public IMessageContent getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(IMessageContent content) {
        this.content = content;
    }

    /**
     * @return the logicalClock
     */
    public String getLogicalClock() {
        return logicalClock;
    }

    /**
     * @param logicalClock the logicalClock to set
     */
    public void setLogicalClock(String logicalClock) {
        this.logicalClock = logicalClock;
    }

    /**
     * @return the type
     */
    public SocketMessageType getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(SocketMessageType type) {
        this.type = type;
    }


}
